home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.2
/
IRIX 6.2 CD2.iso
/
dist
/
outbox.idb
/
var
/
www
/
cgi-bin
/
MachineInfo.z
/
MachineInfo
Wrap
Text File
|
1996-06-10
|
1KB
|
75 lines
#!/usr/bin/perl
#__________________________________________________________
#
# File: MachineInfo
# By: Matt Ho
# Date: 7/23/95
# Purpose: Display host configuration
#__________________________________________________________
$hostname = `/usr/bsd/hostname` ;
open(DATA, "/sbin/hinv |") || &CantGetInfo ;
print <<ENDOFTEXT ;
Content-type: text/html
<head>
<title>
hinv for $hostname
</title>
</head>
<body bgcolor="42426f" text="ffffff" link="ffff00" vlink="93db70"
alink="cc3232">
<body background=/images/logo.gif>
<img src=/images/poweredsgi.gif><p><br>
<h1 align=center>
hinv for $hostname
</h1>
<hr size=3 width=50% noshade>
<p>
<center>
<table>
ENDOFTEXT
while( <DATA> )
{
($name, $value) = split(':', $_, 2) ;
print <<ENDOFTEXT ;
<tr>
<th align=right>
$name
</th>
<td>
$value
</td>
</tr>
ENDOFTEXT
}
close(DATA) ;
print <<ENDOFTEXT ;
</table>
<p>
<hr size=3 width=50% noshade>
ENDOFTEXT
if( defined $ENV{'PATH_INFO'} )
{
print <<ENDOFTEXT ;
<form action=$ENV{'PATH_INFO'} method=get>
<input type=submit value="Return to the previous page">
</form>
ENDOFTEXT
}
print "\n</body></html>\n\n" ;